package com.itheima.service;

import com.itheima.common.PageInfo;
import com.itheima.dto.OrderDto;
import com.itheima.pojo.Order;
import com.itheima.vo.OrderVo;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDateTime;

/**
 * @author YangJiaHao
 */
@Transactional
public interface OrderService {


    PageInfo<Order> page(LocalDateTime beginTime, LocalDateTime endTime, String number, Integer page, Integer pageSize);

    Boolean updateStatus(Integer status, String id);

    Boolean add(OrderDto orderDto);

    PageInfo<OrderVo> getOrderPage(Integer page, Integer pageSize);
}
